<?xml version="1.0" encoding="UTF-8"?>
<ticket>
  <assigned-user-id type="integer">11063</assigned-user-id>
  <attachments-count type="integer">0</attachments-count>
  <closed type="boolean">true</closed>
  <created-at type="datetime">2009-06-14T19:39:53-04:00</created-at>
  <creator-id type="integer">11063</creator-id>
  <milestone-due-on type="datetime" nil="true"></milestone-due-on>
  <milestone-id type="integer" nil="true"></milestone-id>
  <number type="integer">13</number>
  <permalink>tzinfotimezones-with-no-transitions-fail-on-export</permalink>
  <priority type="integer">110630</priority>
  <project-id type="integer">30941</project-id>
  <raw-data type="binary" nil="true" encoding="base64"></raw-data>
  <state>resolved</state>
  <tag nil="true"></tag>
  <title>TZInfo::Timezones with no transitions fail on export</title>
  <updated-at type="datetime">2009-06-14T21:50:09-04:00</updated-at>
  <user-id type="integer">11063</user-id>
  <user-name>Rick DeNatale</user-name>
  <creator-name>Rick DeNatale</creator-name>
  <assigned-user-name>Rick DeNatale</assigned-user-name>
  <url>http://rick_denatale.lighthouseapp.com/projects/30941/tickets/13</url>
  <original-body>Certain time zones have not transitions and therefore no local start time.  The following spec for TZInfoTimezone tests that all TZInfo timezone identifiers can be used, and (except for &quot;UTC&quot;) will generate a VTIMEZONE component with at least one period.

  TZInfo::Timezone.all_identifiers.each do |tz|
    context &quot;TZInfo timezone #{tz}&quot; do
      before(:each) do
        @calendar = RiCal.Calendar do |cal|
          cal.event do |event|
            event.description = &quot;test&quot;
            event.dtstart = &quot;TZID=#{tz}:20090530T123000&quot;
            event.dtend =   &quot;TZID=#{tz}:20090530T123001&quot;
          end
        end
      end
      it &quot;should be allowed as a tzid&quot; do
        lambda {@calendar.export}.should_not raise_error
      end
      unless tz == &quot;UTC&quot;
        it &quot;should produce at least one period in the VTIMEZONE&quot; do
          @calendar.export.should match(/BEGIN:(STANDARD|DAYLIGHT)/)
        end
      end
    end
  end</original-body>
  <latest-body>Certain time zones have not transitions and therefore no local start time.  The following spec for TZInfoTimezone tests that all TZInfo timezone identifiers can be used, and (except for &quot;UTC&quot;) will generate a VTIMEZONE component with at least one period.

  TZInfo::Timezone.all_identifiers.each do |tz|
    context &quot;TZInfo timezone #{tz}&quot; do
      before(:each) do
        @calendar = RiCal.Calendar do |cal|
          cal.event do |event|
            event.description = &quot;test&quot;
            event.dtstart = &quot;TZID=#{tz}:20090530T123000&quot;
            event.dtend =   &quot;TZID=#{tz}:20090530T123001&quot;
          end
        end
      end
      it &quot;should be allowed as a tzid&quot; do
        lambda {@calendar.export}.should_not raise_error
      end
      unless tz == &quot;UTC&quot;
        it &quot;should produce at least one period in the VTIMEZONE&quot; do
          @calendar.export.should match(/BEGIN:(STANDARD|DAYLIGHT)/)
        end
      end
    end
  end</latest-body>
  <original-body-html>&lt;div&gt;&lt;p&gt;Certain time zones have not transitions and therefore no local
start time. The following spec for TZInfoTimezone tests that all
TZInfo timezone identifiers can be used, and (except for &quot;UTC&quot;)
will generate a VTIMEZONE component with at least one period.&lt;/p&gt;
&lt;p&gt;TZInfo::Timezone.all_identifiers.each do |tz|&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;context &quot;TZInfo timezone #{tz}&quot; do
  before(:each) do
    @calendar = RiCal.Calendar do |cal|
      cal.event do |event|
        event.description = &quot;test&quot;
        event.dtstart = &quot;TZID=#{tz}:20090530T123000&quot;
        event.dtend =   &quot;TZID=#{tz}:20090530T123001&quot;
      end
    end
  end
  it &quot;should be allowed as a tzid&quot; do
    lambda {@calendar.export}.should_not raise_error
  end
  unless tz == &quot;UTC&quot;
    it &quot;should produce at least one period in the VTIMEZONE&quot; do
      @calendar.export.should match(/BEGIN:(STANDARD|DAYLIGHT)/)
    end
  end
end
&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;end&lt;/p&gt;&lt;/div&gt;</original-body-html>
  <versions type="array">
    <version type="Ticket::Version">
      <assigned-user-id type="integer">11063</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Certain time zones have not transitions and therefore no local start time.  The following spec for TZInfoTimezone tests that all TZInfo timezone identifiers can be used, and (except for &quot;UTC&quot;) will generate a VTIMEZONE component with at least one period.

  TZInfo::Timezone.all_identifiers.each do |tz|
    context &quot;TZInfo timezone #{tz}&quot; do
      before(:each) do
        @calendar = RiCal.Calendar do |cal|
          cal.event do |event|
            event.description = &quot;test&quot;
            event.dtstart = &quot;TZID=#{tz}:20090530T123000&quot;
            event.dtend =   &quot;TZID=#{tz}:20090530T123001&quot;
          end
        end
      end
      it &quot;should be allowed as a tzid&quot; do
        lambda {@calendar.export}.should_not raise_error
      end
      unless tz == &quot;UTC&quot;
        it &quot;should produce at least one period in the VTIMEZONE&quot; do
          @calendar.export.should match(/BEGIN:(STANDARD|DAYLIGHT)/)
        end
      end
    end
  end</body>
      <body-html>&lt;div&gt;&lt;p&gt;Certain time zones have not transitions and therefore no local
start time. The following spec for TZInfoTimezone tests that all
TZInfo timezone identifiers can be used, and (except for &quot;UTC&quot;)
will generate a VTIMEZONE component with at least one period.&lt;/p&gt;
&lt;p&gt;TZInfo::Timezone.all_identifiers.each do |tz|&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;context &quot;TZInfo timezone #{tz}&quot; do
  before(:each) do
    @calendar = RiCal.Calendar do |cal|
      cal.event do |event|
        event.description = &quot;test&quot;
        event.dtstart = &quot;TZID=#{tz}:20090530T123000&quot;
        event.dtend =   &quot;TZID=#{tz}:20090530T123001&quot;
      end
    end
  end
  it &quot;should be allowed as a tzid&quot; do
    lambda {@calendar.export}.should_not raise_error
  end
  unless tz == &quot;UTC&quot;
    it &quot;should produce at least one period in the VTIMEZONE&quot; do
      @calendar.export.should match(/BEGIN:(STANDARD|DAYLIGHT)/)
    end
  end
end&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;end&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2009-06-14T19:39:53-04:00</created-at>
      <creator-id type="integer">11063</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">13</number>
      <permalink>tzinfotimezones-with-no-transitions-fail-on-export</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">30941</project-id>
      <state>new</state>
      <tag nil="true"></tag>
      <title>TZInfo::Timezones with no transitions fail on export</title>
      <updated-at type="datetime">2009-06-14T19:39:53-04:00</updated-at>
      <user-id type="integer">11063</user-id>
      <user-name>Rick DeNatale</user-name>
      <creator-name>Rick DeNatale</creator-name>
      <assigned-user-name>Rick DeNatale</assigned-user-name>
      <url>http://rick_denatale.lighthouseapp.com/projects/30941/tickets/13</url>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">11063</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Fixed in 0.6.3</body>
      <body-html>&lt;div&gt;&lt;p&gt;Fixed in 0.6.3&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-06-14T21:50:09-04:00</created-at>
      <creator-id type="integer">11063</creator-id>
      <diffable-attributes type="yaml">--- 
:state: new
</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">13</number>
      <permalink>tzinfotimezones-with-no-transitions-fail-on-export</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">30941</project-id>
      <state>resolved</state>
      <tag nil="true"></tag>
      <title>TZInfo::Timezones with no transitions fail on export</title>
      <updated-at type="datetime">2009-06-14T21:50:09-04:00</updated-at>
      <user-id type="integer">11063</user-id>
      <user-name>Rick DeNatale</user-name>
      <creator-name>Rick DeNatale</creator-name>
      <assigned-user-name>Rick DeNatale</assigned-user-name>
      <url>http://rick_denatale.lighthouseapp.com/projects/30941/tickets/13</url>
    </version>
  </versions>
</ticket>
